textHeightSum
Type
function
Summary
Returns the total height of the text in a field or button.
Syntax
the textHeightSum of <object>
textHeightSum(<object>)
Description
Use the textHeightSum function to determine how much vertical space a field's or button's text requires.
This function exists for compatibility with imported SuperCard projects. You can use the formattedHeight property to find the height of the text in a field or button.
If the object is a button or field, the textHeightSum returns the number of vertical pixels needed to display all the text at the field's current width. If the object is a card or group, the textHeightSum returns the number of vertical pixels needed to display all the objects in the card or group.
Parameters
Name | Type | Description |
---|---|---|
object | A field, button, card, or group. |
Examples
the textHeightSum of field "Comments"
if the textHeightSum of group 1 > the height of this card then expandCd
Related
command: group
control structure: function
glossary: object, property, return
keyword: button, integer, field, card
property: formattedWidth, textHeight, formattedHeight, pixels, pageHeights
Compatibility and Support
Introduced
LiveCode 1.0
OS
ios
android
Platforms
desktop
server
mobile